# i = 1
# while i <= 9:
#     j = 1
#     while j <= i:
#         print(j,'*',i,'=',j*i,end=' ')
#         #让列数加1
#         j += 1
#     print('\n')
#     #让行数加1
#     i += 1;

for i in range(1,10):
    for j in range(1,i+1):
        print(j, '*', i, '=', j * i, end=' ')
    print('\n')